package com.mfangsoft.zhuangjialong.integration.enums;

public enum ShopState {
	


    OFF("上架",2), ON("下架",1),NO_CHECK("未审核",1), CHECK_PASS("审核通过",2),CHECK_NO_PASS("审核不通过",3);

	
	private String name;
	
	private Integer index;
	
	private ShopState(String name,Integer index){
		
		this.name = name;
        this.index = index;
	}
	
	
	public String getName()
	{
		return this.name;
	}
	
	public Integer getIndex()
	{
		
		return this.index;
	}
	
//	public String getName(Integer key){
//		
//		switch (key) {
//		case 1:
//			return ShopState.PLATFORM.name;
//		case 2:
//			return ShopState.ENTERPRISE.name;
//		case 3:
//			return ShopState.PARTNER.name;
//		case 4:
//			return ShopState.AGENT.name;
//		case 5:
//			return ShopState.SHOP.name;
//		case 0:
//			return ShopState.BACKSTAGE.name;
//
//		default:
//			return null;
//		}
//		
//	}

}
